package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the JOBQUEUEPARAM database table.
 * 
 */
@Embeddable
public class JobqueueparamPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private long jobnumber;
	private long paramnumber;

    public JobqueueparamPK() {
    }

	@Column(unique=true, nullable=false)
	public long getJobnumber() {
		return this.jobnumber;
	}
	public void setJobnumber(long jobnumber) {
		this.jobnumber = jobnumber;
	}

	@Column(unique=true, nullable=false)
	public long getParamnumber() {
		return this.paramnumber;
	}
	public void setParamnumber(long paramnumber) {
		this.paramnumber = paramnumber;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof JobqueueparamPK)) {
			return false;
		}
		JobqueueparamPK castOther = (JobqueueparamPK)other;
		return 
			(this.jobnumber == castOther.jobnumber)
			&& (this.paramnumber == castOther.paramnumber);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + ((int) (this.jobnumber ^ (this.jobnumber >>> 32)));
		hash = hash * prime + ((int) (this.paramnumber ^ (this.paramnumber >>> 32)));
		
		return hash;
    }
}